package com.wcx.application.service.Impl;

import com.wcx.application.domian.BossBean;
import com.wcx.application.domian.StudentBean;
import com.wcx.application.mapper.BossMapper;
import com.wcx.application.mapper.StudentMapper;
import com.wcx.application.service.BossService;
import com.wcx.application.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BossServiceImpl implements BossService {
    @Autowired
    BossMapper bossMapper;

    @Override
    public List<BossBean> getList() {
        return bossMapper.getList();
    }

    @Override
    public int update(BossBean bossBean) {
        return bossMapper.update(bossBean);
    }

    @Override
    public int delete(int id) {
        return bossMapper.delete(id);
    }

    @Override
    public int updateAvatarById(String originalFilename, int id) {
        return bossMapper.updateAvatarById(originalFilename,id);
    }

    @Override
    public int create(BossBean bossBean) {
        return bossMapper.create(bossBean);
    }

    @Override
    public List<BossBean> searchList(BossBean bossBean) {
        return bossMapper.searchList(bossBean);
    }

    @Override
    public int updateAvatarByUserName(String originalFilename, String username) {
        return bossMapper.updateAvatarByUserName(originalFilename,username);
    }

    @Override
    public BossBean login(BossBean bossBean) {
        return bossMapper.login(bossBean);
    }


}
